<div class="blogs form">
<?php echo $this->Form->create('Blog', array('enctype' => 'multipart/form-data')); ?>
	<fieldset>
		<legend><?php echo __('Edit Blog'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('title');
		echo $this->Form->input('article');
                echo $this->Form->input('user_id');
                if (!empty($this->request->data['Blog']['image'])) {
                    echo $this->Html->image('uploads/' . $this->request->data['Blog']['image'], array('width' => '140px', 'style' => 'margin-left13px'));
                }
		echo $this->Form->input('image', array('type' => 'file'));
                echo $this->Form->input('posted_dates', array('type' => 'date'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
